package com.wrial.seckill.error;
/*
 * @Author  Wrial
 * @Date Created in 10:01 2020/4/4
 * @Description 自定义异常
 */

public class CustomizeException extends RuntimeException {

    private int code;
    private String errMsg;

    public CustomizeException(CommonError commonError) {
        this.code = commonError.getCode();
        this.errMsg = commonError.getMessage();
    }


    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.errMsg;
    }


}
